package com.hmall.mapper;

import com.hmall.model.SysUserDealer;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysUserDealerMapper extends MyMapper<SysUserDealer> {
    Integer[] selectByUserId(@Param("user_id") Integer user_id);

    void deleteByDealerIdAndUserId(@Param("dealer_id") Integer dealer_id, @Param("user_id") Integer user_id);

    List<Integer> selectNotIn(@Param("user_id") Integer user_id);
}